home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / tex-k-archive.gz / tex-k-archive / 000086_pnoma@wk.estec.esa.nl_Fri Nov 12 13:52:47 1993.msg < prev    next >
Internet Message Format  |  1994-10-11  |  7KB

  1. Received: from estgtw.estec.esa.nl by cs.umb.edu with SMTP id AA06085
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Fri, 12 Nov 1993 07:04:31 -0500
  3. Received: by estgtw.estec.esa.nl (5.57/Ultrix3.0-C)
  4.     id AA12330; Fri, 12 Nov 93 12:52:44 +0100
  5. Received: from estwkl.estwk (estwkl.estec.esa.nl) by wk.estec.esa.nl (4.1/SMI-4.1)
  6.     id AA17532; Fri, 12 Nov 93 12:52:47 +0100
  7. Date: Fri, 12 Nov 93 12:52:47 +0100
  8. From: pnoma@wk.estec.esa.nl (Per Norman Oma)
  9. Message-Id: <9311121152.AA17532@wk.estec.esa.nl>
  10. To: tex-k@cs.umb.edu
  11. Subject: MakeTeX* etc.
  12. Content-Type: X-sun-attachment
  13.  
  14. ----------
  15. X-Sun-Data-Type: text
  16. X-Sun-Data-Description: text
  17. X-Sun-Data-Name: text
  18. X-Sun-Content-Lines: 53
  19.  
  20.  
  21. Hello!
  22.  
  23. I am setting up the newest and greatest TeX/LaTeX-system which I am able to.
  24. I have web2c-5.851d (updated with TeX-3.1415), the latest versions of
  25. dvipsk and xdvik together with NFSS2. I also have the Sauter font-system
  26. and the dc-fonts.
  27. I want the font-making as automatic as possible and therefore I use
  28. MakeTeXPK, MakeTeXTFM and MakeTeXMF.
  29. To get MakeTeX* working from web2c (TeX and MF) i had to remove one of
  30. the shells enclosing the script in lib/openinout.c (I think this have been
  31. mentioned before)
  32. The sauter stuff in MakeTeXPK will not work, I believe there is some
  33. problem with the tests in this line:
  34.  
  35. if test -d $sauterdir && test $? -eq 1 && test $mf = cmmf; then
  36.  
  37. However I get around this problem by making a MakeTeXMF script.
  38. The sauter part is inspirated by MakeTeXPK and the dc part is similar, but
  39. require a `hack' by having the dcstded.tex split in two parts and then
  40. concatenate them with the rigth stuff in between before running tex to
  41. generate the .mf source file.
  42.  
  43. I also have a MakeTeXTFM which I made from a version I found in comp.text.tex
  44. some time ago, and also inspirated by MakeTeXPK.
  45.  
  46. When having installed the base .mf-source files from sauter and dc I dont need
  47. any size-spesific files, or any cm*.tfm, dc*.tfm or dc*.*pk, cm*.*pk files.
  48. All is generated on the fly when needed. (.mf and .tfm when running TeX and
  49. pk-files when running xdvi or dvips). Thanks for the well implemented web2c,
  50. xdvik, dvipsk and sauter and dc stuff which made this possible!
  51.  
  52. My versions of MakeTeXMF and MakeTeXTFM is attached to this mail.
  53.  
  54. Anyone knowing if there will be some merging of sauter-system and dc-fonts?
  55. Something about true-size fonts in NFSS2 ?
  56. (I know this is not the rigth place for this questions, but maybe some of
  57. you on the list know something)
  58.  
  59. If someone use and improve this things, let us know...
  60.  
  61. (Temporary .sig...)
  62. Per Norman Oma                          E-mail: pnoma@wk.estec.esa.nl
  63. Stagiaire at ESTEC/WKA                  Phone:  +31 1719 85298
  64. Noordwijk, The Netherlands              Fax:    +31 1719 85432
  65.  
  66. (Ordinary .sig...)
  67. Regards, Per Norman Oma                 (The TeX/LaTeX manager at:)
  68.  
  69. Department of Engineering Cybernetics   : Phone +47 73594392 (direct) 
  70. The Norwegian Institute of Technology   :       +47 73594376 (switchboard)
  71. N-7034 Trondheim                        : Fax   +47 73594399
  72. NORWAY                                  : Email TeX@itk.unit.no
  73. ----------
  74. X-Sun-Data-Type: shell-script
  75. X-Sun-Data-Description: shell-script
  76. X-Sun-Data-Name: MakeTeXMF
  77. X-Sun-Content-Lines: 82
  78.  
  79. #!/bin/sh
  80. #
  81. # This script make a new METAFONT cm*.mf or dc*.mf file
  82. # because one wasn't found.  Usage
  83. #
  84. # MakeTeXMF name
  85. #
  86. # `name' is the name of the font file, such as `cmr10'
  87. #
  88. # This file need the sauter font system and the dc fonts
  89. #
  90. # Of course this need to be customized to your site
  91. MFDIR=/home/estwk1/pnoma/lib/mf
  92. DESTDIR=$MFDIR/macros/tmp
  93. SAUTERDIR=/home/estwk1/pnoma/src/tex/fonts/sauter
  94. DCDIR=/home/estwk1/pnoma/src/tex/fonts/dc
  95.  
  96. NAME=`echo $1 | sed 's/\.mf$//'`
  97.  
  98. umask 0
  99.  
  100. MFNAME=$NAME.mf
  101.  
  102. # Which type of font is this?
  103. case $NAME in
  104.   cm*) font=cm;;
  105.   dc*) font=dc;;
  106.   *) font=other;;
  107. esac
  108.  
  109. if test -r $DESTDIR/$MFNAME
  110. then
  111.    echo "$DESTDIR/$MFNAME already exists!"
  112.    exit 0
  113. fi
  114.  
  115. # check also in the standard place
  116.  
  117. if test -r /usr/local/lib/mf/inputs/$MFNAME
  118. then
  119.    echo /usr/local/lib/mf/inputs/$MFNAME already exists!
  120.    exit 0
  121. fi
  122.  
  123. if test $font = cm; then
  124.   # The font is CM.  Try Sauter's scripts.
  125.   cd $SAUTERDIR
  126.   pwd
  127.   rootfont=`echo $NAME | sed 's/[0-9]*$//'`
  128.   pointsize=`echo $NAME | sed 's/cm[a-z]*//'`
  129.   make-mf $rootfont $pointsize
  130.   echo "Trying interpolated/extrapolated (Sauter) CM source." 1>&2
  131.   # Install the MF file carefully, since others may be doing the same
  132.   # as us simultaneously.
  133.  
  134.   chmod 644 mf/$MFNAME
  135.   mv mf/$MFNAME $DESTDIR/mftmp.$$
  136.   cd $DESTDIR
  137.   mv mftmp.$$ $MFNAME
  138. elif test $font = dc; then
  139.   # The font is DC. 
  140.   cd $DCDIR
  141.   rootfont=`echo $NAME | sed 's/[0-9]*$//'`
  142.   pointsize=`echo $NAME | sed 's/dc[a-z]*//'`
  143.   cat dcstdedt.pre > dctmp.tex
  144.   echo $pointsize " ) " >> dctmp.tex
  145.   echo "     \makefont " $rootfont " ( " $pointsize " ) " >> dctmp.tex
  146.   cat dcstdedt.end >> dctmp.tex
  147.   tex dctmp
  148.   rm -f dctmp.* mfbatch.bat
  149.   echo "Trying interpolated/extrapolated DC source." 1>&2
  150.   # Install the MF file carefully, since others may be doing the same
  151.   # as us simultaneously.
  152.  
  153.   chmod 644 $MFNAME
  154.   mv $MFNAME $DESTDIR/mftmp.$$
  155.   cd $DESTDIR
  156.   mv mftmp.$$ $MFNAME 
  157. else
  158.   echo "MakeTeXMF is not implemented for this font"
  159. fi
  160. exit 0
  161. ----------
  162. X-Sun-Data-Type: shell-script
  163. X-Sun-Data-Name: MakeTeXTFM
  164. X-Sun-Content-Lines: 76
  165.  
  166. #!/bin/sh
  167. #
  168. #   This script file makes a new TeX TFM font, because one wasn't
  169. #   found.  Usage:
  170. #
  171. #   MakeTFM name [mode]
  172. #
  173. #   `name' is the name of the font, such as `cmr10'.
  174. #   `mode', if supplied, is the mode to use.
  175. #
  176. #   Note that this file must execute Metafont, and place the result 
  177. #   in the correct location.
  178. #
  179. #   Of course, it needs to be set up for your site.
  180. #
  181. # TEMPDIR needs to be unique for each process because of the possibility
  182. # of simultaneous processes running this script.
  183. ##DESTDIR=/LocalLibrary/Fonts/TeXFonts/pk
  184. ##DESTDIR=/usr/local/lib/tex/localfonts
  185. TEXDIR=/home/estwk1/pnoma/lib/tex
  186. LOCALDIR=$TEXDIR/fonts
  187. DESTDIR=$LOCALDIR/tfmtmp
  188. TEMPDIR=$TMPDIR/mttfm.$$
  189. NAME=`echo $1 | sed 's/\.tfm$//'`
  190. MODE=$2
  191.  
  192. umask 0
  193.  
  194. if test "$MODE" = ""
  195. then MODE=nullmode
  196. fi
  197.  
  198. TFMNAME=$NAME.$DPI'tfm'
  199.  
  200. # Clean up on normal or abnormal exit
  201. trap "cd /; rm -rf $TEMPDIR $DESTDIR/tfmtmp.$$" 0 1 2 15
  202.  
  203. if test ! -d $DESTDIR
  204. then
  205.    mkdir $DESTDIR
  206. fi
  207.  
  208. mkdir $TEMPDIR
  209. cd $TEMPDIR
  210.  
  211. if test -r $DESTDIR/$TFMNAME
  212. then
  213.    echo "$DESTDIR/$TFMNAME already exists!"
  214.    exit 0
  215. fi
  216.  
  217. # check also in the standard place
  218.  
  219. if test -r /usr/local/lib/tex/fonts/$TFMNAME
  220. then
  221.    echo /usr/local/lib/tex/fonts/$TFMNAME already exists!
  222.    exit 0
  223. fi
  224.  
  225. echo mf "\mode:=$MODE; mag:=1; scrollmode; input $NAME" \\\</dev/null
  226. mf "\mode:=$MODE; mag:=1; scrollmode; input $NAME" </dev/null
  227. if test ! -r $TFMNAME
  228. then
  229.    echo "Metafont failed for some reason on $TFMNAME"
  230.    exit 1
  231. fi
  232.  
  233. # Install the TFM file carefully, since others may be doing the same
  234. # as us simultaneously.
  235.  
  236. chmod 644 $TFMNAME
  237. mv $TFMNAME $DESTDIR/tfmtmp.$$
  238. cd $DESTDIR
  239. mv tfmtmp.$$ $TFMNAME
  240.  
  241. exit 0